let baseURL='http://127.0.0.1:10100';

function myRequest(options){
	let headers={}
	
	headers["Content-Type"] = "application/json";
	return new Promise((res,rej)=>{
		uni.request({
			url:baseURL + options.url,
			method:options.method || 'GET',
			data:options.data,
			header:headers,
			success(data) {
				res(data.data)
			},
		})
	})
	
}
export default myRequest;